package com.sftz.modules.minapp.personal.enums;

import com.uxuexi.core.common.enums.IEnum;

/**
 * 表单项数据类型
 * <p>
 * 暂时支持数字和文本
 */
public enum InstitutionFormDataTypeEnum implements IEnum {
	NUM(1, "数字"), TEXT(2, "文本"), ID_CARD(3, "身份证"), TEL(4, "手机号");
	private int key;
	private String value;

	private InstitutionFormDataTypeEnum(final int key, final String value) {
		this.value = value;
		this.key = key;
	}

	@Override
	public String key() {
		return String.valueOf(key);
	}

	@Override
	public String value() {
		return value;
	}

	public int intKey() {
		return key;
	}
}
